package util;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConexaoPPCP {
	private static String url="jdbc:h2:tcp://localhost/~/workspace/PPCP-Havaianas/Dados";
	private static String usuario = "sa";
	private static String senha = "";
    private static Connection conexao;

public static Connection getConexaoPPCP() throws SQLException, ClassNotFoundException {
        if(conexao==null){
    	Class.forName("org.h2.Driver");
            conexao = DriverManager.getConnection(url, usuario, senha);
	return conexao;
        } else {
            return conexao;
        }
}
}
